package com.gg.hc.service;

import com.gg.common.pojo.MDesignProcedure;
import com.gg.hc.search.PageVo;
import com.github.pagehelper.Page;

import java.util.List;

public interface MDesignProcedureService {

    /**
     * 根据id修改工时成本
     * @return
     */
    int updateCostPriceSumById(MDesignProcedure mDesignProcedure);

    /**
     * 根据设计单编号修改状态
     * @param designId
     * @return
     */
    int updateMDesignProcedureSuppliesTag(String designId);//oo

    /**
     * 插入物料总成本
     * @return
     */
    int updateMDesignProcedureModuleCostPriceSum(MDesignProcedure mDesignProcedure);
    /**
     * 查询审核已通过的
     * @return
     */
    PageVo<MDesignProcedure> QueryMDesignProcedureSuppliesAll(PageVo pageVo);

    /**
     * 物料审核未通过改状态
     * @param mDesignProcedure
     * @return
     */
    int UpdateMDesignProcedureSuppliesNoPass(MDesignProcedure mDesignProcedure);

    /**
     * 工序物料审核通过
     * @param mDesignProcedure
     * @return
     */
    int UpdateMDesignProcedureSuppliesCheckTag(MDesignProcedure mDesignProcedure);

    /**
     * 查询待审核或审核未通过
     * @return
     */
    PageVo<MDesignProcedure> queryMDesignProcedureSupplies(PageVo pageVo);
    /**
     * 提交成功修改状态
     * @param id
     * @return
     */
    int updateDesignModuleTagById(int id);

    /**
     * 查询工序物料设计未设计的
     * @return
     */
    PageVo<MDesignProcedure> queryByDesignModuleTag(PageVo pageVo);

    /**
     * 变更后改为待审核
     * @return
     */
    int UpdateCheckTag(MDesignProcedure mDesignProcedure);

    /**
     * 根据设计编号修改 审核不通过
     * @param
     */
    void UpdateMDesignProcedureNoPass(MDesignProcedure mDesignProcedure);

    /**
     * 根据设计编号修改 审核通过
     * @param
     */
    void UpdateMDesignProcedureCheckTag(MDesignProcedure mDesignProcedure);

    /**
     * 生产工序设计单提交插入的数据
     * @param mDesignProcedure
     */
    void AddMDesignProcedure(MDesignProcedure mDesignProcedure);
    PageVo<MDesignProcedure> queryMDesignProcedureAll(PageVo pageVo);
    PageVo<MDesignProcedure> QueryMDesignProcedureAll(PageVo pageVo);
}
